package cn.mineserv.video.videoordersystem.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "`admin`")
public class Admin implements Serializable {
    @TableId(value = "admin_id", type = IdType.AUTO)
    private Integer adminId;

    @TableField(value = "admin_name")
    private String adminName;

    @TableField(value = "`password`")
    private String password;

    @TableField(value = "nick_name")
    private String nickName;

    @TableField(value = "admin_permission")
    private String adminPermission;

    private static final long serialVersionUID = 1L;

    public static final String COL_ADMIN_ID = "admin_id";

    public static final String COL_ADMIN_NAME = "admin_name";

    public static final String COL_PASSWORD = "password";

    public static final String COL_NICK_NAME = "nick_name";

    public static final String COL_ADMIN_PERMISSION = "admin_permission";
}